import api from "./index";

// 登录相关接口
export default {
  // 账号登录方法
  login: (params) => api.post("/login", params),
  // 用户一键登录
  loginOpenid: (params) => api.post("/loginOpenid", params),
  // 绑定
  binding: (params) => api.post("/binding", params),
  // 修改信息
  updateBdmUser: (params) => api.post("/applet/user/updateBdmUser", params),
  // 搜索
  getReferrer: (params) => api.get("/admin/rule/getReferrer", params),
  // 退出登录
  logout: () => api.post("/logout"),
};
